package com.egg.basic.fegin;

import com.egg.basic.fegin.fallback.BasicSecureFeignClientFallback;
import com.egg.common.core.model.response.ResponseData;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(
        value = "basic"
        , url = "${api.feign.url.basic:}"
        , fallbackFactory = BasicSecureFeignClientFallback.class
)
public interface BasicSecureFeignClient {


    @GetMapping("/feign/secure/aes")
    ResponseData<String> aes(@ApiParam(value = "获取对称秘钥的KEY", required = true) @RequestParam(value = "secure") String secure);


}
